package com.neuedu.his.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.neuedu.his.mapper.RegisterMapper;
import com.neuedu.his.po.Register;
import com.neuedu.his.service.RegisterService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.time.LocalDate;
import java.util.List;

/**
 * @author root
 * @description 针对表【register】的数据库操作Service实现
 * @createDate 2025-06-25 10:55:54
 */
@Service
public class RegisterServiceImpl extends ServiceImpl<RegisterMapper, Register>
        implements RegisterService {

    @Autowired
    private RegisterMapper registerMapper;


    public List<Register> getByDoctorAndVisitStates(Integer doctorId, List<Integer> visitStates) {
        return registerMapper.findByDoctorAndVisitStates(doctorId, visitStates);
    }

    public List<Register> getByDeptAndVisitStates(Integer deptId, List<Integer> visitStates) {
        return registerMapper.findByDeptAndVisitStates(deptId, visitStates);
    }

}






